<%@ taglib prefix="c" uri="http://java.sun.com/jsp/jstl/core" %>
<%@ taglib prefix="form" uri="http://www.springframework.org/tags/form" %>
<%@ page contentType="text/html;charset=UTF-8" %>
<!doctype html>
<html>
<head>
<meta charset="utf-8">
<link rel="stylesheet" href="css/base.css" />
<link rel="stylesheet" type="text/css" href="css/jquery.dialog.css" />
<link rel="stylesheet" href="css/index.css" />
    <link rel="stylesheet" href="css/info-mgt.css" />
    <link rel="stylesheet" href="css/WdatePicker.css" />
<title>毕业生简历管理系统</title>
    <style type="text/css">
        a:link {
            font-size: 12px;
            color: #000000;
            text-decoration: none;
        }
        a:visited {
            font-size: 12px;
            color: #000000;
            text-decoration: none;
        }
        a:hover {
            font-size: 12px;
            color: #999999;
            text-decoration: none;
        }
        a svg:hover{
            transform: scale(1.2);
        }
        h1{
            font-family: 华文行楷;
        }
    </style>
</head>
<body>
<script type="text/javascript" src="js/jquery.js"></script>
<div id="container">
    <div id="hd">
        <div class="hd-wrap ue-clear">
            <div class="top-light"></div>
            <h1>毕业生简历管理系统</h1>
            <div class="login-info ue-clear">
                <div class="welcome ue-clear"><span>欢迎您,</span><a href="employerRecommend?e_id=${employer.e_id}" class="user-name">${employer.name}</a></div>
            </div>
            <div class="toolbar ue-clear">
                <a href="employerExit" class="quit-btn exit"></a>
            </div>
        </div>
    </div>
    <div id="bd">
        <div class="wrap ue-clear">
            <div class="sidebar">
                <h2 class="sidebar-header"><p>功能导航</p></h2>
                <ul class="nav">
                    <li class="recommend"><div class="nav-header" onclick="employerSkip1()"><a  class="ue-clear"><span>内容推荐</span></a></div></li>
                    <li class="position_manage"><div class="nav-header" onclick="employerSkip8()"><a class="ue-clear"><span>招聘岗位管理</span></a></div>
                    <li class="search"><div class="nav-header" onclick="employerSkip7()"><a class="ue-clear"><span>人才搜索</span></a></div></li>
                    <li class="inform"><div class="nav-header" onclick="employerSkip5()" ><a  class="ue-clear"><span>求职者通知</span></a></div></li>
                    <li class="manage"><div class="nav-header" onclick="employerSkip6()" ><a  class="ue-clear"><span>聘用信息反馈</span></a></div></li>
                </ul>
            </div>
            <div class="content">
                <div class="title"><h2>聘用者信息处理</h2></div>
                <div class="query">
                    <div class="btn ue-clear">
                        <input onclick="downLoad()" style="height:50px;width:150px;background-color:#8eb2d2;color:white;border-radius:10px;margin-left: 198px" type="button" value="下载"/>
                        <input onclick="sendEmail()" style="height:50px;width:150px;background-color:#8eb2d2;color:white;border-radius:10px;float: right;margin-right: 202px" type="button" value="发邮箱至学校"/>
                    </div>
                </div>
                <div class="table-box">
                    <table>
                        <thead>
                        <tr>
                            <th class="num">序号</th>
                            <th class="num">专业</th>
                            <th class="num">姓名</th>
                            <th class="num">录取单位</th>
                            <th class="num">查看</th>
                        </tr>
                        </thead>
                        <tbody>
                        <c:forEach items="${acEmployees}" var ="acEmployee"  begin="0" varStatus="status">
                            <tr>
                                <td class="num" aria-readonly="true">${status.count}</td>
                                <td class="num" aria-readonly="true">${acEmployee.major}</td>
                                <td class="num" aria-readonly="true">${acEmployee.c_name}</td>
                                <td class="num" aria-readonly="true">${acEmployee.e_name}</td>
                                <td class="num">
                                    <a style="color:blue" href="candidateInfo?c_id=${acEmployee.c_id }" title="详细信息">
                                        <svg t="1648472204377" class="icon" viewBox="0 0 1304 1024" version="1.1" xmlns="http://www.w3.org/2000/svg" p-id="22759" width="35" height="35"><path d="M1078.06466969 815.07975268H758.54757525l-76.52300154 98.00314207c-18.79512286 22.82264978-52.35784332 28.19268512-75.1804931 9.39756142-4.02752609-2.68501767-6.71254376-5.37003534-9.39756142-9.39756142L520.92351765 815.07975268H218.85903765c-59.07038708 0-107.40070432-48.33031723-107.40070432-107.40070431V197.52570432c0-59.07038708 48.33031723-107.40070432 107.40070432-107.40070432h859.20563205c59.07038708 0 107.40070432 48.33031723 107.40070431 107.40070432v510.15334405c0 59.07038708-48.33031723 107.40070432-107.40070431 107.40070431z" fill="#2F77F1" p-id="22760"></path><path d="M406.81026958 385.47693625c37.59024655 0 67.12544009 29.53519354 67.1254401 67.1254401s-29.53519354 67.12544009-67.1254401 67.12544009-67.12544009-29.53519354-67.1254401-67.12544009 29.53519354-67.12544009 67.1254401-67.1254401z m241.6515845 0c37.59024655 0 67.12544009 29.53519354 67.12543928 67.1254401s-29.53519354 67.12544009-67.12543928 67.12544009-67.12544009-29.53519354-67.12544009-67.12544009 29.53519354-67.12544009 67.12544009-67.1254401z m241.65158368 0c37.59024655 0 67.12544009 29.53519354 67.1254401 67.1254401s-29.53519354 67.12544009-67.1254401 67.12544009-67.12544009-29.53519354-67.1254401-67.12544009 29.53519354-67.12544009 67.1254401-67.1254401z" fill="#AFFCFE" p-id="22761"></path></svg>
                                    </a>
                                </td>
                            </tr>
                        </c:forEach>
                        </tbody>
                    </table>
                </div>
                <div class="pagination ue-clear">
                    <%--	分页--%>
                    <%--		<nav aria-label="Page navigation">--%>
                    <ul class="pagination">
                        <%--				前一页--%>
                        <c:choose>
                            <c:when test="${pageInfo.isFirstPage}">
                                <li>
                                    <a href="javascript:void(0)" aria-label="Previous">
                                        <span aria-hidden="true"><<</span>
                                    </a>
                                </li>
                            </c:when>
                            <c:otherwise>
                                <li>
                                    <a href="findAcceptedCandidatesByParams?school=${school}&&e_name=${sessionScope.employer.name}&&pageNum=${pageInfo.prePage}" aria-label="Previous">
                                        <span aria-hidden="true"><<</span>
                                    </a>
                                </li>
                            </c:otherwise>
                        </c:choose>
                        <%--			中间具体页数--%>
                        <c:forEach items="${pageInfo.navigatepageNums}" var="pi">
                            <li><a href="findAcceptedCandidatesByParams?school=${school}&&e_name=${sessionScope.employer.name}&&pageNum=${pi}">${pi}</a></li>
                        </c:forEach>

                        <%--			后一页--%>

                        <c:choose>
                            <c:when test="${pageInfo.isLastPage}">
                                <li>
                                    <a href="javascript:void(0)" aria-label="Next">
                                        <span aria-hidden="true">>></span>
                                    </a>
                                </li>
                            </c:when>
                            <c:otherwise>
                                <li>
                                    <a href="findAcceptedCandidatesByParams?school=${school}&&e_name=${sessionScope.employer.name}&&pageNum=${pageInfo.nextPage}" aria-label="Next">
                                        <span aria-hidden="true">>></span>
                                    </a>
                                </li>
                            </c:otherwise>
                        </c:choose>
                    </ul>
                    <%--		</nav>--%>
                </div>
            </div>
        </div>
    </div>
</div>
</body>
<script type="text/javascript" src="js/common.js"></script>
<script type="text/javascript" src="js/core.js"></script>
<script type="text/javascript" src="js/jquery.dialog.js"></script>
<script type="text/javascript" src="js/index.js"></script>
<script type="text/javascript" src="js/jquery.js"></script>
<script type="text/javascript" src="js/WdatePicker.js"></script>
<script>
    function employerSkip1(){ const e_id="${employer.e_id}"; location.href="employerRecommend?e_id="+e_id}
    function employerSkip7(){ const e_id="${employer.e_id}"; location.href="findAllCandidates?e_id="+e_id}
    function employerSkip5(){ const e_id="${employer.e_id}"; location.href="employerNotice?e_id="+e_id}
    function employerSkip6(){ const e_id="${employer.e_id}"; location.href="findAllAcceptedCandidatesByEId?e_id="+e_id}
    function employerSkip8(){ const e_id="${employer.e_id}"; location.href="findAllPositionsByEId?e_id="+e_id}
    function downLoad(){

        location.href="exportExcel?school=${school}&&e_name=${employer.name}";
    }
    function sendEmail(){ location.href="empSendEmail"}


    const  msg="${message}";
    if(msg){
        alert(msg);
    }
</script>
</html>